// 用户登录模块的请求
import {request} from "@/utils";

// 1. 封装登录请求API
function loginUserAPI(LoginData) {
    return request({
        url: "/authorizations",
        method: "POST",
        data: LoginData
    })
}

// 2. 封装查询用户信息的请求API
function findUserAPI() {
    return request({
        url: '/user/profile',
        method: 'GET'
    })
}

export {
    loginUserAPI,
    findUserAPI
}